package com.zhuidian.mothernote.activity;

import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.base.presenter.BasePresenter;
import com.zhuidian.mothernote.R;
import com.zhuidian.mothernote.global.BaseActivity;

public class RedPackRewardSettingActivity extends BaseActivity {
    private TextView tv_way;
    private ImageView iv_arrow_one;
    private RelativeLayout rl_money;
    private EditText et_money;
    private ImageView iv_arrow;
    private RelativeLayout rl_num;
    private EditText et_num;
    private ImageView iv_num;
    private TextView tv_check;
    private TextView tv_cancel;

    @Override
    protected int inflateMainLayoutId() {
        return R.layout.activity_red_pack_reward_setting;
    }

    @Override
    protected void initView(View view) {
        setTopGone();
        tv_way = (TextView) view.findViewById(R.id.tv_way);
        iv_arrow_one = (ImageView) view.findViewById(R.id.iv_arrow_one);
        rl_money = (RelativeLayout) view.findViewById(R.id.rl_money);
        et_money = (EditText) view.findViewById(R.id.et_money);
        iv_arrow = (ImageView) view.findViewById(R.id.iv_arrow);
        rl_num = (RelativeLayout) view.findViewById(R.id.rl_num);
        et_num = (EditText) view.findViewById(R.id.et_num);
        iv_num = (ImageView) view.findViewById(R.id.iv_num);
        tv_check = (TextView) view.findViewById(R.id.tv_check);
        tv_cancel = (TextView) view.findViewById(R.id.tv_cancel);
    }

    @Override
    protected void setListener() {
        tv_check.setOnClickListener(this);
        tv_cancel.setOnClickListener(this);
    }

    @Override
    protected BasePresenter getPresenter() {
        return null;
    }

    @Override
    public void onClick(View view) {
        super.onClick(view);
        switch (view.getId()) {
            case R.id.tv_check:
                      onBackPressed();
                break;

            case R.id.tv_cancel:
                       onBackPressed();
                break;
        }
    }
}
